package com.tb.mapper;

import com.tb.pojo.Nature;
import com.tb.pojo.NatureExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface NatureMapper {

    /*********************************************************************/
    List<Nature> selectNatureByGoodsId(Map<String,Object> map);
    /*********************************************************************/

    long countByExample(NatureExample example);

    int deleteByExample(NatureExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Nature record);

    //增加
    int insertSelective(Nature record);

    List<Nature> selectByExample(NatureExample example);

    Nature selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Nature record, @Param("example") NatureExample example);

    int updateByExample(@Param("record") Nature record, @Param("example") NatureExample example);

    int updateByPrimaryKeySelective(Nature record);

    int updateByPrimaryKey(Nature record);
}